package cn.itcast.session.entity.shiyan.rj.servlet;
//ShowLetter.java
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;

@WebServlet(name="ShowLetter",urlPatterns = "/ShowLetter")
public class ShowLetter extends GenericServlet {

    @Override
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out = response.getWriter();
        out.println("<html><body>");
        out.print("<BR>英文大写字母:");
        for (char c='A';c<='Z';c++) {
            out.print(c);
        }
        out.print("<BR>英文小写字母:");
        for (char c='a';c<='z';c++) {
            out.print(c);
        }
        out.println("</html></body>");
    }
}